package com.feige.pojo.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author feige<br />
 * @ClassName: UserVo <br/>
 * @Description: <br/>
 * @date: 2021/3/23 8:08<br/>
 */
@Data
public class UserVo implements Serializable {
    private static final long serialVersionUID = -8973224351194537738L;

    private String id;
    private String askForLeaveId;
    private String num;
    private String name;
    /**
     * 1表示请假
     * 2表示签到
     * 3表示未签到
     */
    private Integer flag;
    private Date beginTime;
    private Date endTime;

    /**
     * @description: id相等则说明该用户相等
     * @author: feige
     * @date: 2021/3/24 9:43
     * @param	o
     * @return: boolean
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        UserVo userVo = (UserVo) o;
        return Objects.equals(id, userVo.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
